from flask import Blueprint,render_template
from .moudels import Post
bp=Blueprint('blog',__name__,url_prefix='/blog',template_folder='templates',static_folder='static')

@bp.route('/index')
def index():
    arts=Post.query.get(1).__init__
    return render_template('index.html',**locals())